import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Manage from '../pages/index';
import Login from '../pages/login';
import Order from '../pages/Order';
import Classify from '../pages/Classify';
import User from '../pages/user';
import Commodity from '../pages/Commodity'
import Admin from "../pages/admins";
import Census from '../pages/Census';
import Shot from '../pages/shot';

export default function index() {
    return <div>
        <BrowserRouter>
            <Routes>
                <Route path='/' element={<Login />} />
                <Route path='/login' element={<Login />} />
                <Route path='/manage' element={<Manage />} >
                    <Route path="order" element={<Order />} />
                    <Route path='user' element={<User />} />
                    <Route path='commodity' element={<Commodity />} />
                    <Route path="classify" element={<Classify />} />
                    <Route path="user" element={<User />} />
                    <Route path='admin' element={<Admin />} />
                    <Route path='census' element={<Census />} />
                    <Route path='shot' element={<Shot />} />
                </Route>
            </Routes>
        </BrowserRouter>
    </div>
}
